package com.server.questionbank.snframe.service.QuestionBank;

import com.server.questionbank.snframe.domain.Homework.TExercises;
import com.server.questionbank.snframe.domain.QuestionBank.DTO.ExercisesDto;
import com.server.questionbank.snframe.domain.QuestionBank.Exercises;
import com.server.questionbank.snframe.domain.ResDTO.PageResult;

import java.util.List;
import java.util.Map;

public interface ExercisesService {
    /**
     * 查询题库列表
     * @param type
     * @param sort
     * @return
     */
    public PageResult<TExercises> getQuestionBanList(String type, Map<String,String> sort);

    /**
     * 查询具体的题
     *
     * @param exercisesId
     * @return
     */
    TExercises selectById(Long exercisesId);

    /**
     * 手动组卷搜索的题
     *
     * @param
     * @return
     */
    PageResult<TExercises> searchQuestions(ExercisesDto params);


    /**
     * 手动组卷查询题目信息数组
     * @param exercisesIds
     * @return
     */
    List<Exercises> findBatchExercisesWithQuestions(Long[] exercisesIds);

}
